package com.hzsai.mininote.tester;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * hzsai 2020/2/20
 * usage:
 **/
public class HashmapTester {

    public static void main(String[] args) {
        final HashMap<String, String> map = new HashMap<String, String>();
        for (int i = 0; i < 1000; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    map.put(UUID.randomUUID().toString(), "");
                }
            }).start();
        }
        for (Map.Entry<String, String> k :  map.entrySet()) {
            System.out.println(k);
        }
    }
}
